package com.example.opentiktok;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class BrowseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bbrowse);
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container,new BrowseFragment())   // 此处的R.id.fragment_container是要盛放fragment的父容器
                .commit();
    }
}